package com.exception;

import Lex.Token;

public class PL0Exception extends Throwable {
    private String msg;
    private Token token;

    public PL0Exception(String msg, Token token) {
        this.token = token;
        this.msg = msg;
    }

    public void printMsg() {
        System.out.println(msg);
        System.out.println("At line: " + token.getLine());
    }
}